Fix AVX instructions being generated in SSE4.1 code (bug #760292)
authorDaniel Sabo <DanielSabo@gmail.com>
Fri, 8 Jan 2016 02:05:44 +0000 (18:05 -0800)
committerDaniel Sabo <DanielSabo@gmail.com>
Fri, 8 Jan 2016 02:05:44 +0000 (18:05 -0800)
The half-float flag got accidentally added to the SSE4.1 flags,
causing GCC to auto-enable AVX.

configure.ac

index e2ab5f7de6ced8f41bde064b16e65a4f2d4ce4c8..aed1683c0838a5edbcfbc9fd8ed2631d608a896d 100644 (file)
@@ -382,9 +382,11 @@ if test "x$enable_mmx" = xyes; then
         fi
       fi
 
+      CFLAGS="$mmx_save_CFLAGS"
+
       if test "x$enable_f16c" = xyes; then
         BABL_DETECT_CFLAGS(f16c_flag, '-mf16c')
-        SSE4_1_EXTRA_CFLAGS="$SSE_EXTRA_CFLAGS $f16c_flag"
+        F16C_EXTRA_CFLAGS="$SSE_EXTRA_CFLAGS $f16c_flag"
 
         AC_MSG_CHECKING(whether we can compile half-floating point code)
 
@@ -413,6 +415,7 @@ if test "x$enable_mmx" = xyes; then
   AC_SUBST(SSE_EXTRA_CFLAGS)
   AC_SUBST(SSE2_EXTRA_CFLAGS)
   AC_SUBST(SSE4_1_EXTRA_CFLAGS)
+  AC_SUBST(F16C_EXTRA_CFLAGS)
 fi